package com.engine4cloud.tdf.education.dto.query;

import com.engine4cloud.tdf.common.data.web.response.Params;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 学习任务
 *
 * @author wenjie
 * @date 2024-07-30 14:58:44
 */
@Data
@Schema(description = "学习任务")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class EduStudentTaskAppQueryDTO extends Params {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 学习任务编号
     */
    @Schema(description = "学习任务编号")
    private String code;

    /**
     * 课程编号
     */
    @Schema(description = "课程编号")
    private String courseCode;

    /**
     * 学组编号
     */
    @Schema(description = "学组编号")
    private String groupCode;

    /**
     * 学员编号
     */
    @Schema(description = "学员编号")
    @NotBlank(message = "学员编号不能为空")
    private String studentCode;

    public EduStudentTaskAppQueryDTO(String code) {
        this.code = code;
    }
}